10 LOCATE , , 0: SCREEN 0, 0, 0: ON KEY(10) GOSUB 610: KEY(10) ON: DEFINT A-T: DEFSTR U, W: DIM WORD(100), A(100), USED(27): GOSUB 820: FOR B = 0 TO 100: READ WORD(B): NEXT: GOSUB 520
20 CLS : LOCATE 1, 29: PRINT "A D A M A S M A C A": FOR C = 1 TO 27: USED(C) = "": NEXT: A = A + 1: CHANCE = 0: RANDOMIZE (VAL(RIGHT$(TIME$, 2)))
30 B = RND(1) * 100: A(A) = B:
FOR C = 0 TO A - 1:
IF A(C) = B THEN 30:
NEXT:
L = LEN(WORD(B)): WORD = SPACE$(L): WH1 = SPACE$(L): X = 1
40 LOCATE 10, 30: FOR C = 1 TO L: IF MID$(WORD, C, 1) = " " THEN PRINT "- "; ELSE PRINT MID$(WORD, C, 1); " ";
50 NEXT: XLIN = CSRLIN: YPOS = POS(0): GOSUB 630: COLOR 0, 7: LOCATE 4, 23: PRINT " Bunlar kullandìgìnìz harflerdir... ": COLOR 3, 0: LOCATE 6, 25: FOR C = 1 TO X: PRINT USED(C); " "; : NEXT: LOCATE 8, 30: PRINT "Kelimeniz... :"
60 COLOR 15, 0: LOCATE 12, 28, 1: PRINT "Lütfen bir harf yazìn"; : COLOR 3, 0: GOSUB 600
70 IF W >= "A" AND W <= "Z" THEN 80
FOR G = 1 TO X: IF W = USED(G) THEN 190:
NEXT
80 LOCATE 10, 28, 0: FLAG = 0: FOR G = 1 TO L: IF W = MID$(WORD(B), G, 1) THEN FLAG = 1: LOCATE 10, 28 + 2 * G: PRINT MID$(WORD(B), G, 1); : MID$(WORD, G, 1) = MID$(WORD(B), G, 1): IF WORD = WORD(B) THEN 130
90 NEXT: USED(X) = W: X = X + 1: IF FLAG = 0 THEN GOSUB 200: IF CHANCE = 10 THEN 140 ELSE 40
100 FLAG = 0: LOCATE 12, 1: PRINT SPC(79); : COLOR 15, 0: LOCATE 24, 20: PRINT "Tahmininizi yazìn ve ENTER'a basìn"; : COLOR 31, 0: LOCATE 21, 20, 1: PRINT "Sizce Kelime Nedir ? "; : COLOR 7, 0: GOSUB 850
110 WH = WA: COLOR 3, 0: IF WH = WORD(B) THEN 130
120 LOCATE 24, 1: PRINT SPC(79); : LOCATE 22, 30: PRINT "iYi Deneme fakat YANLIS!!": LOCATE 21, 1: PRINT STRING$(80, 32); : FOR G = 1 TO 2000: NEXT: LOCATE 22, 1: PRINT STRING$(80, 32); : GOTO 40
460 PLAY "T120" + "MN" + "MB": PLAY "O3L8C.L16C" + "L2F.L8C.L16F": PLAY "L2A.L8C.L16F" + "L4A" + "L8C." + "L16F" + "L4A" + "L8C." + "L16F" + "L2A.": PLAY "O3" + "L8F.L16A" + "ML" + "O4L2C" + "MN" + "O3L4AL4FL2C.": PLAY "O3L8C.L16C" + "ML" + "L1F" + _
"MN" + "L4F"
470 FOR C = 1 TO 1200: NEXT: FOR C = 50 TO 200 STEP 1: SOUND C, .0001: NEXT: SOUND C, 0: LOCATE 21, 31: PRINT SPC(20); : RETURN
480 LOCATE 1, 15: PRINT STRING$(25, 178): LOCATE 2, 15: PRINT STRING$(5, 178): FOR C = 3 TO 20: LOCATE C, 15: PRINT STRING$(4, 178): NEXT: LOCATE 21, 5: PRINT STRING$(40, 178): FOR C = 22 TO 23: LOCATE C, 5: PRINT STRING$(4, 178); SPC(15); STRING$(4 _
, 178): NEXT: COLOR 3, 0: RETURN
490 _
DATA BUG,PRINTER,GAME,ELBOW,PIZZA,BUDGET,CRY,THING,FEIGN,CARD,TALK,EXAMPLE,TENSION,CALCULATOR,SHOE,TABLE,STEREO,BICYCLE,GUESS,BLENDER,FAULT,DIRTY,LOUDSPEAKER,CHICKEN,DANGEROUS,DIFFERENT,SCIENTIST,KIDNEY,SELF,MAHOGANY,UGLY,FRIENDLYWARE,PROGRAM,OPERA
500 DATA MUSIC,REPLICA,COMPUTER,BABOON,CHIMPANZEE,CHAIR,HORSE,FELLOW,AUTOMOBILE,KIDNAP,LAMP,LIGHT,FREEZER,FRY,SKATE,ERRONEOUSLY,SEQUENCE,AFTER,HIGHWAY,POLICE,ART,CRIED,FLY,AIRPLANE,SAILBOAT,HOUSE,DRIVEWAY,FENCE,HOTEL,MOTEL,SWIM,OCEAN,LAKE
510 DATA DRIVE,ICE,SNOW,CATCH,FALL,WALL,FLOOR,ESCAPE,MASTER,CHECK,FILE,JUMP,CEMENT,ASPHALT,BRICK,MAILBOX,TRUCK,THUNDER,LIGHTNING,RAIN,ADVENTURE,BUS,TOWER,SKYSCRAPER,LAWN,ELEPHANT,CIRCUS,SCARY,KILLED,BABY,PUPPIES,CHURCH,STORE,STREET
520 CLS : COLOR 15, 0: LOCATE 1, 1: PRINT "╔"; STRING$(78, 205); "╗": FOR A = 2 TO 22: LOCATE A, 1: PRINT "║": LOCATE A, 80: PRINT "║"; : NEXT: LOCATE 23, 1: PRINT "╚"; STRING$(78, 205); "╝"; : LOCATE 2, 34: PRINT "H A N G M A N"
530 LOCATE 9, 24: PRINT "Would You Like Instructions? <Y/N> ": COLOR 3, 0
540 GOSUB 600: IF W = "N" OR W = "n" THEN RETURN ELSE IF W <> "Y" AND W <> "y" THEN 540
550 LOCATE 4, 17: PRINT "In this game of HANGMAN I will select a secret": LOCATE 5, 17: PRINT "word. It is your problem to guess this word in": LOCATE 6, 17: PRINT "TEN tries or less. You do this by guessing one"
560 LOCATE 7, 17: PRINT "letter at a time. If the letter that you guess": LOCATE 8, 17: PRINT "is in the word, I will put it in the position": LOCATE 9, 17: PRINT "that it belongs, and allow you to guess what"
570 LOCATE 10, 17: PRINT "the secret word is. If the letter you guess is": LOCATE 11, 17: PRINT "not part of the secret word, another part of": LOCATE 12, 17: PRINT "the man will be added. You will have ten wrong"
580 LOCATE 13, 17: PRINT "guesses before your man is hung. If you are": LOCATE 14, 17: PRINT "able to guess the secret word, the man gets to": LOCATE 15, 17: PRINT "go free! It's up to you.": LOCATE 18, 29: PRINT "GOOD LUCK AND HAVE FUN"
590 COLOR 15, 0: LOCATE 25, 27: PRINT "Strike Any Key To Continue"; : COLOR 3, 0: W = INKEY$: IF W <> "" THEN 600
600 W = INKEY$: IF W = "" THEN 600 ELSE IF W < "a" OR W > "z" THEN RETURN ELSE W = CHR$(ASC(W) - 32): RETURN
610 KEY(10) OFF: XLIN = CSRLIN: YPOS = POS(0): LOCATE 25, 1: PRINT SPC(79); : LOCATE 25, 23: COLOR 15, 0: PRINT "Do You Wish To Leave This Game? <Y/N>"; : COLOR 3, 0
620 GOSUB 600: IF W <> "N" THEN 640 ELSE W = ""
630 LOCATE 25, 1: PRINT SPC(79); : LOCATE 25, 25: COLOR 0, 7: PRINT " Strike <F10> To Leave This Game "; : COLOR 3, 0: LOCATE XLIN, YPOS: KEY(10) ON: RETURN
640 IF W <> "Y" THEN 620
650 ON ERROR GOTO 660: RUN "MENU1.001"
660 ON ERROR GOTO 670:
670 RUN "MENU3.003"
680 CLS : GOSUB 820
690 GOSUB 400
700 GOSUB 390
710 GOSUB 440
720 GOSUB 430
730 GOSUB 420
740 GOSUB 410
750 GOSUB 380
760 GOSUB 370
770 GOSUB 360
780 GOSUB 350
790 COLOR 15, 0: LOCATE 6, 35, 0: PRINT "│ \=/ │": COLOR 6, 0